
import org.joda.time.DateTime;

import com.acmetelecom.BillingSystem;
import com.acmetelecom.CallEnd;
import com.acmetelecom.CallEvent;
import com.acmetelecom.CallStart;

import fit.*;

public class SimpleTest extends ColumnFixture {
	
	public String caller;
	public String callee;
	public String call_start;
	public String call_end;

	public double cost() {
		FakeGenerator fg = new FakeGenerator();
		BillingSystem billingsystem = new BillingSystem(fg);
		
		CallEvent e1 = new CallStart(caller,callee,DateTime.parse(call_start));
		CallEvent e2 = new CallEnd(caller,callee,DateTime.parse(call_end));
		
		billingsystem.addCall(e1);
		billingsystem.addCall(e2);
		
		billingsystem.createCustomerBills();
		
		return(fg.getBill());
	}
}
